Film Noise Filter (`fmns')
The Film Noise filter alters a single source, simulating some of the effects that are seen on aged film stock. This effect can be used to transform a video source into one that looks like it was shot on film that has suffered the effects of age and mishandling.
Example:
The specific features, which can be controlled independently, are:
-
Hairs. These are a simulation of hairs lying on the surface of the film. Each hair is randomly generated, and is colored in a randomly chosen shade of light grey.
-
Scratches. These are vertical or near-vertical one-pixel lines drawn onto the destination image which simulate scratches in the film. Each scratch lasts for a pre-calculated length of time. During its lifespan the scratch's position will be randomly peturbed. Shortly before the scratch is removed, it will begin to shorten. The color of the scratches is a randomly chosen shade of light grey.
-
Dust. These simulate dust particles on the surface of the film. Dust particles are drawn using the same algorithm that generates the hairs, but the particles are more tightly curled, and drawn in a darker shade of grey.
-
Film Fade. This simulates an overall change in the color of the film stock. Every pixel of the source image is passed through the film fade algorithm, so this can be processor-intensive.
The Film Noise effect takes a single source and has eight parameters.
Parameters
Name
|
Code
|
Type
|
Description
|
Hair Density
|
`hden'
|
Long
|
This parameter controls the number of hairs that are drawn on each frame and the frequency with which hairs appear. The maximum number of hairs per frame is a randomly generated number between 1 and the value of this parameter. The chance of each hair appearing on a single frame is 1 in (the value of this parameter).
|
Hair Length
|
`hlen'
|
Long
|
The maximum length (in pixels) of the hairs being drawn.
|
Scratch Density
|
`sden'
|
Long
|
This parameter controls the number of scratches that are drawn on each frame and the frequency with which scratches appear. The maximum number of scratches per frame is a randomly generated number between 1 and the value of this parameter. The chance of each scratch appearing on a single frame is 1 in (the value of this parameter).
|
Scratch Duration
|
`sdur'
|
Long
|
The maximum number of frames that each scratch appears for. The actual number of frames for each scratch is a randomly chosen value between 1 and this value plus 20.
|
Scratch Width
|
`swid'
|
Long
|
The maximum width, in pixels, of a scratch. The actual width is a randomly chosen number between 1 and this value.
|
Dust Density
|
`dden'
|
Long
|
This parameter controls the number of dust particles that are drawn on each frame and the frequency with which dust particles appear. The maximum number of dust particles per frame is a randomly generated number between 1 and the value of this parameter. The chance of each dust particle appearing on a single frame is 1 in (the value of this parameter).
|
Dust Size
|
`dsiz'
|
Long
|
The length of the dust particles in pixels. The formula used is:
Length = Random(5) + Dust Size
In other words, for each particle, the length in pixels is a random
number between 1 and 5, plus the value of the Dust Size parameter.
|
Film Fade
|
`fade'
|
Enum
|
The type of film fade effect (if any) to apply.
|
The Film Fade Enum
The Film Fade parameter can take one of the following values:
-
None--the destination image is a copy of the source.
-
Sepia Tone--the destination is a slightly saturated, monochromatic version of the source, colorized into shades of sepia (a light red-brown).
-
Black and White--the destination is a greyscale version of the source.
-
Faded color film--the destination is a color de-saturated version of the source.
-
1930's color film - the destination is a color super-saturated version of the source.
© 1997 Apple Computer, Inc.
| Previous | Chapter contents | Chapter top | Section top | Next |